﻿using System;
using System.Collections.Generic;
using System.Net;

namespace HobSoft.SoccerBet2014.Domain.Common.SiteContext
{
    public interface ICookiesManager
    {
        CookieContainer GetCookies(byte bookerId, string account, Uri url);
        Cookie GetCookie(byte bookerId, string account, string cookieName, Uri url);
        Cookie GetHttpCookie(byte bookerId, string account, string cookieName, DateTime updateTime, IEnumerable<string> exceptDomain);
        Cookie GetHttpCookie(byte bookerId, string account, string cookieName, string domain);
        void SetCookies(byte bookerId, string account, Cookie cookie);
        void SetCookies(byte bookerId, string account, CookieCollection cookies);
        void DeleteCookies(byte bookerId, string account, string cookieName, IEnumerable<string> exceptDomain);
        void Clear(byte bookerId, string account);
    }
}
